
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/common.css"
	type="text/css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#login").click(function() {
			var user = {
				email : $.trim($('#email').val()),
				password : $.trim($('#pwd').val())
			};
			$.post('login.do', user, function(res) {
				alert(res.code);
			}, 'json');
		});
	});
</script>
</head>

<body>
	<div class="container">
		<div class="nav">
			<div class="logo"></div>
			<div class="logo-des">宁波设计创意广告大赛</div>
		</div>
		<div class="login">
			<div class="login-title">
				<label class="ltl-left">欢迎回来</label> <label class="ltl-right">还没注册账号？<a
					href="#" style="text-decoration: none;color: #66ccff;">立即注册</a></label>
			</div>
			<div class="login-form">
				<form action="${pageContext.request.contextPath}/login.do"
					method="post">
					<ul>
						<li><label>用户名</label> <input class="login-input" type="text"
							value="${email}" name="email" id="email" /></li>
						<li><label>密码</label> <input class="login-input"
							type="password" value="${pwd}" name="pwd" id="pwd" /></li>
						<li><a id="login" href="javascript:void(0)"
							class="login-button login-input" type="button"
							style="width: 180px; border-style: none; display: inline-block; line-height: 45px; text-decoration: none;">
								登&nbsp;&nbsp;录</a></li>
					</ul>
				</form>
			</div>
		</div>
	</div>
</body>
</html>